package com.example.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * Created by IntelliJ IDEA2022.3.2
 * @Author: Tenghw
 * @Date: 2023/03/30  23:10
 * @Description:
 */
@Slf4j
@RestController
public class ClusterA2Controller {

    /**
     * 功能描述：测试网关gateway
     * @param
     * @return
     */
    @GetMapping("/testClusterAGateway/{code}")
    public String testClusterAGateway(@PathVariable int code) {
        log.info(LocalDateTime.now()+ ": springcloud-gateway-clusterA2模块ClusterA2Controller===>testClusterAGateway方法...");
        return "springcloud-gateway-clusterA2模块测试网关8084, code=" + code;
    }
}
